package com.bajie.bjlisten.entity;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * Package: com.bajie.framework.domain.ebook
 * <p>
 * Description： TODO
 * <p>
 * Author: wangzhen
 * <p>
 * Date: Created in 2019/5/18 4:59 PM
 * 分类
 */

@Entity
@Data

@Table(name = "bj_category")
@GenericGenerator(name = "jpa-assigned", strategy = "assigned")
public class BjCategory /*implements Serializable*/ {
    //private static final long serialVersionUID = -906357110051689484L;

    @Id
    @GeneratedValue(generator = "jpa-assigned")
    @Column(length = 32)
    private String id;//主键
    private String name;//分类名称
    private String label;//分类标签默认和名称一样
    private String parentid;//父结点id
    private String isshow;//是否显示
    private Integer orderby;//排序字段
    private String isleaf;//是否叶子


}
